package org.dromara.system.domain.bo;

import org.dromara.system.domain.RelGeo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 企业区域业务对象 rel_geo
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = RelGeo.class, reverseConvertGenerate = false)
public class RelGeoBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 关联id
     */
    @NotNull(message = "关联id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long basicId;

    /**
     * 类型
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 区域名称
     */
    @NotBlank(message = "区域名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String areaName;

    /**
     * 坐标信息
     */
    private String geo;


}
